import request from '@/utils/request'

// 查询分类列表
export function listCategory() {
  return request({
    url: '/category/listAll',
    method: 'get',
  })
}

export function getCategoryById(categoryId: number) {
  return request({
    url: '/category/' + categoryId,
    method: 'get',
  })
}
